class LoginService {

    boolean transactional = false
    def loginService
    def manejaLogin(nickname, contrasena) {
def user = Usuario.findByNicknameAndContrasena(nickname, contrasena)
    if (!user) {

        return 1
    }
    else
    {
         //session.user = user
        return user
        
    }
    }
}
